package com.sskj.jgxt.jd.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "JD_WenTiIMG")
public class WenTiIMG extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@JsonIgnore
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "wtId", nullable = true)
	private FoundWT wt;

	@JsonIgnore
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "jdjlId", nullable = true)
	private JianDuJiLu jdjl;

	private String imgUrl = "";

	private Integer sort = 0;

	@JSONField(serialize = false)
	public FoundWT getWt() {
		return wt;
	}

	public void setWt(FoundWT wt) {
		this.wt = wt;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@JSONField(serialize = false)
	public JianDuJiLu getJdjl() {
		return jdjl;
	}

	public void setJdjl(JianDuJiLu jdjl) {
		this.jdjl = jdjl;
	}

}
